namespace CQIE.TES.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Question")]
    public partial class Question
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public Question()
        {
            Children = new HashSet<Question>();
        }

        public int ID { get; set; }

        [StringLength(50)]
        public string Info { get; set; }

        public string Options { get; set; }

        public int? Indicator { get; set; }

        public double Height { get; set; }

        public int? Type { get; set; }

        [Column("Parent")]
        public int? ParentId { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Question> Children { get; set; }

        public virtual Question Parent { get; set; }
    }
}
